﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace NikotinBert
{
    public class GameObject
    {
        protected Texture2D texture;
        protected int renderlayer;
        protected Vector2 position;
        protected bool solid;
        protected string name;

        protected GameObject()
        {
            texture = null;
            renderlayer = 0;
            position.X = 0;
            position.Y = 0;
            solid = true;
            name = "";
        }

        virtual public void setTexture(Texture2D texture)
        {
            this.texture = texture;
        }

        virtual public Texture2D getTexture()
        {
            return texture;
        }

        virtual public void setRenderlayer(int renderlayer)
        {
            this.renderlayer = renderlayer;
        }

        virtual public int getRenderlayer()
        {
            return renderlayer;
        }

        virtual public void setPosition(Vector2 position)
        {
            this.position = position;
        }

        virtual public Vector2 getPosition()
        {
            return position;
        }

        virtual public void setSolid(bool solid)
        {
            this.solid = solid;
        }

        virtual public bool getSolid()
        {
            return solid;
        }

        virtual public string getName()
        {
            return name;
        }

        virtual public void setName(string name)
        {
            this.name = name;
        }
    }
}
